//
//  PlayViewController.h
//  My1A2B
//
//  Created by sun ives on 2009/12/28.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
@class My1A2BAppDelegate, MyNumberPadView;

@interface PlayViewController : UIViewController {
	UITextField *fNumber;
	UIButton *bSubmit, *bFrontProcess, *bBackHome;
	UILabel *lTitle, *lAnswer;
	NSUInteger m_answerCount;
	My1A2BAppDelegate *m_appDelegate;
	MyNumberPadView *myNumberPadView;
	UIView *contentView;
}
@property (nonatomic, retain) IBOutlet UITextField *fNumber;
@property (nonatomic, retain) IBOutlet UIButton *bSubmit;
@property (nonatomic, retain) IBOutlet UIButton *bFrontProcess;
@property (nonatomic, retain) IBOutlet UIButton *bBackHome;
@property (nonatomic, retain) IBOutlet UILabel *lTitle;
@property (nonatomic, retain) IBOutlet UILabel *lAnswer;
@property (nonatomic, retain) My1A2BAppDelegate *m_appDelegate;
@property (nonatomic, retain) IBOutlet MyNumberPadView *myNumberPadView;
@property (nonatomic, readwrite) NSUInteger m_answerCount;
@property (nonatomic, retain) IBOutlet UIView *contentView;


- (IBAction)guess:(UIButton *)sender;
- (IBAction)backHome:(UIButton *)sender;
- (IBAction)pressNumber:(UIButton *)sender;

- (void)frontHistory:(id)sender;
- (BOOL)checkNumber:(NSUInteger)length input:(NSString*)input;
- (void)alert:(NSString *)title message:(NSString *)msg tag:(NSInteger)tag;
- (IBAction) makeKeyboardGoAway;

@end
